package com.beans;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.stereotype.Repository;

import javax.annotation.Resource;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: fzykd
 * Date: 2022-10-09
 * Time: 10:29
 */

@Controller
public class UserController {



    public void say(){

    }

    public UserRepository userRepository;

    //set注入
    @Resource
    public UserRepository setUserRepository(UserRepository userRepository){
        return this.userRepository = userRepository;
    }

    @Resource
    public User user;


}
